<nav aria-label="...">
    <ul class="pagination">
        <li class="page-item {% if page == 1 %}disabled{% endif %}">
            <a class="page-link" href="{{ request.path }}?page={{ page|add:-1 }}&per_page={{ per_page }}">Previous</a>
        </li>

        {% for num in page_list %}
        <li class="page-item {% if page == num  %}active{% endif %}"><a class="page-link" href="{{ request.path }}?page={{ num }}&per_page={{ per_page }}">{{ num }}</a></li>
        {% endfor %}

        <li class="page-item {% if page == total_page %}disabled{% endif %}">
            <a class="page-link" href="{{ request.path }}?page={{ page|add:1 }}&per_page={{ per_page }}">Next</a>
        </li>
    </ul>
</nav>